package com.corpgovernment.common.feignRpc;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

import com.corpgovernment.common.base.JSONResult;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(name = "basic-manage", qualifier = "basicDataClient", fallback = CommonBasicClientFallBack.class)
public interface CommonBasicClient {

    /**
     * 获取携程ticket
     * @param corpid 公司ID
     * @param supplierCode 供应商编码
     * @param useCache 是否使用缓存
     * @return
     */
    @RequestMapping(value = "/basicData/ctripTokenByCorpIDV2")
    JSONResult<String> ctripTokenByCorpID(@RequestParam(value = "corpid") String corpid, @RequestParam(value = "supplierCode") String supplierCode, @RequestParam(value = "useCache") boolean useCache);

}